package com.eliza.base.views.learn.widget

import android.app.Application
import android.os.Bundle
import android.os.StrictMode
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.glance.action.ActionParameters

val destinationKey = ActionParameters.Key<String>(
    "KEY_DESTINATION"
)


class MyAppWidgetActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val destination = intent.extras?.getString(destinationKey.name) ?: "none"
        Log.d("MyAppWidgetActivity", "onCreate:$destination ")
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.d("MyAppWidgetActivity", "onDestroy")

    }
}



class DemoApplication : Application() {
    override fun onCreate() {
        StrictMode.enableDefaults()
        super.onCreate()
    }
}